package com.example.mq.mqclient;

import lombok.Data;

import java.io.IOException;

@Data
public class ConnectionFactory {
    //broker server的ip地址
    private String host;
    //broker server的端口号
    private int port;

    public Connection newConnection() throws IOException {
        Connection connection = new Connection(host,port);
        return connection;
    }
}
